/** 
*
* @author  jiwf 
* @date 创建时间：2016年9月7日 下午10:14:27 
* @version 1.0 
* @since  
*  
*/
package com.xbstar.service;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbstar.bean.MsgInfo;
import com.xbstar.bean.UserGroupRelation;
import com.xbstar.dao.MsgInfoRepository;
import com.xbstar.dao.UserGroupRelationRepository;
@Service
public class MsgInfoServiceImpl implements MsgService {
	@Autowired
	private MsgInfoRepository msgInfoRepository;
	@Autowired
	private UserGroupRelationRepository userGroupRelationRepository;
	@Override
	public void save(MsgInfo msg) {
		msgInfoRepository.save(msg);
	}
	@Override
	public List<UserGroupRelation> findByGroupId(Long id) {
		return userGroupRelationRepository.findByGroupId(id);
	}
}
